package com.tlgen.modules.hospitalized.repository;

import com.tlgen.modules.hospitalized.domain.Record;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author: tlgen
 * @Discription: 用户持久层
 */
public interface RecordRepository extends JpaRepository<Record, Long>, JpaSpecificationExecutor<Record> {

    /**
     * 根据名称查询
     * @param name
     * @return
     */
    Record findByName(String name);

}
